package My;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
	
	public static void main(String[] args) {
		 AnnotationConfigApplicationContext ctx =  new AnnotationConfigApplicationContext();
		 ctx.register(AppConfig.class);
		 ctx.refresh();
		 MyBean myBean = ctx.getBean(MyBean.class);	
		 
		 myBean.kiir("VALAMI SZOVEG");
	}
	
}
